﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Text;
using System.Threading.Tasks;
using System.Web.ApplicationServices;

namespace RRSimulator.BlobManager.Service
{
    public class CustomAuthenticationService : IAuthenticationService
    {
        private AuthenticationService _authService = new AuthenticationService();

        public string TestAuthCustomOperation(string test)
        {
            return test;
        }

        public bool Login(string username, string password, string customCredential, bool isPersistent)
        {
            return _authService.Login(username, password, customCredential, isPersistent);
        }

        public void Logout()
        {
            _authService.Logout();
        }

        public bool ValidateUser(string username, string password, string customCredential)
        {
            return _authService.ValidateUser(username, password, customCredential);
        }

        public bool IsLoggedIn()
        {
            return _authService.IsLoggedIn();
        }
    }
}
